<template>
	<view class="pic-content">
		<upload-mo ref="pictureList"></upload-mo>
		<view class='radio-group'>
			<uni-forms ref="baseForm" :modelValue="picObj" :label-width='150'>
				<uni-forms-item label="是否隐藏个人信息">
					<uni-data-checkbox v-model="picObj.ishidden" :localdata="nohave" />
				</uni-forms-item>
				<uni-forms-item label="是否显示生活照">
					<uni-data-checkbox v-model="picObj.ishiddenpic" :localdata="nohave" />
				</uni-forms-item>
				<uni-forms-item label="是否置顶">
					<uni-data-checkbox v-model="picObj.istop" :localdata="nohave" />
				</uni-forms-item>
				<!-- <uni-forms-item label="是否隐藏个人信息" required>
					<uni-data-checkbox v-model="picObj.ishidden" :localdata="nohave" />
				</uni-forms-item> -->

			</uni-forms>


		</view>
	</view>
</template>


<script setup lang="ts">
	import { ref } from 'vue';
	const pictureList = ref()
	import uploadMo from './upload.vue'
	const picObj = ref({
		ishidden: 1,
		ishiddenpic: 0,
		istop: 0
	})
	const nohave = ref([
		{ value: 0, text: "是" },
		{ value: 1, text: "否" },
	])
	defineExpose({
		picObj,
		pictureList
	})
</script>

<style lang="scss" scoped>
	.pic-content {
		.radio-group {
			padding: 48rpx 32rpx;
		}
	}
</style>